package com.yan.club;

import com.yan.club.auth.annotate.EnableClubAuth;
import com.yan.club.handler.GlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @author 彦
 * @since 2024/2/6 21:43
 */
@SpringBootApplication
@EnableClubAuth
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import(GlobalExceptionHandler.class)
public class ClubSysApplication {
    public static void main(String[] args) {
        SpringApplication.run(ClubSysApplication.class);
    }
}
